import { Routes, RouterModule }  from '@angular/router';
import { StopComponent } from './stop.component';
import { StopDetailComponent } from './stop-detail.component';

const routes: Routes = [
  {
    path: '',
    component: StopComponent
  },
  {
      path:'detail/:id',
      component: StopDetailComponent
  }  
];

export const routing = RouterModule.forChild(routes);